<h1><%= t("editing_product") + " &ldquo;#{@product.name}&rdquo;" %></h1>

<% content_for :sidebar do %>

  <h3 class="name"><%= @product.name %><span class='sku'><%= @product.sku %></span></h3>
  <br clear="clear" />

  <ul class="sidebar product-menu">
    <li<%= ' class="active"' if current == "Product Details" %>>
      <%= link_to t("product_details"), edit_admin_product_url(@product) %>
    </li>
    <li<%= ' class="active"' if current == "Variants" %>>
      <%= link_to t("variants"),  admin_product_variants_url(@product) %>
    </li>
    <li<%= ' class="active"' if current == "Option Types" %>>
      <%= link_to t("option_types"), selected_admin_product_option_types_url(@product) %>
    </li>
    <li<%= ' class="active"' if current == "Product Properties" %>>
      <%= link_to t("product_properties"), admin_product_product_properties_url(@product) %>
    </li>
    <li<%= ' class="active"' if current == "Taxons" %>>
      <%= link_to t("taxons"), selected_admin_product_taxons_url(@product) %>
    </li>
    <% if @product_admin_tabs && @product_admin_tabs.size > 0
      @product_admin_tabs.each do |extension| %>
      <li<%= ' class="active"' if current == extension[:name].capitalize.pluralize %>>
        <%= link_to extension[:name].capitalize.pluralize,  eval(extension[:url] + " @product") %>
      </li>
      <% end %>
    <% end %>

  </ul>
  <br clear="clear" />

<% end %>
